﻿using Azylee.Core.DataUtils.StringUtils;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Azylee.YeahWeb.ExtWebAPI.BingWebAPI.WallpaperUtils
{
    public class WallpaperWebModel
    {
        /// <summary>
        /// 
        /// </summary>
        public List<ImagesItem> images { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public Tooltips tooltips { get; set; }
    }
    public class ImagesItem
    {
        /// <summary>
        /// 
        /// </summary>
        public string startdate { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string fullstartdate { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string enddate { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string url { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string urlbase { get; set; }
        /// <summary>
        /// 黄昏时佩吉海湾的灯塔，加拿大新斯科舍省 (© Darwin Wiggett/Offset)
        /// </summary>
        public string copyright { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string copyrightlink { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string title { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string quiz { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string wp { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string hsh { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int drk { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int top { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int bot { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<string> hs { get; set; }
        public string GetImageUrl()
        {
            if (Str.Ok(url)) return "https://cn.bing.com" + url;
            return "";
        }
    }

    public class Tooltips
    {
        /// <summary>
        /// 正在加载...
        /// </summary>
        public string loading { get; set; }
        /// <summary>
        /// 上一个图像
        /// </summary>
        public string previous { get; set; }
        /// <summary>
        /// 下一个图像
        /// </summary>
        public string next { get; set; }
        /// <summary>
        /// 此图片不能下载用作壁纸。
        /// </summary>
        public string walle { get; set; }
        /// <summary>
        /// 下载今日美图。仅限用作桌面壁纸。
        /// </summary>
        public string walls { get; set; }
    }
}
